#pragma once

#include <QWidget>
#include "CommonUtils.h"
namespace Ui { class TalkWindowItem; };

class TalkWindowItem : public QWidget
{
	Q_OBJECT

public:
	TalkWindowItem(QWidget *parent = Q_NULLPTR);
	~TalkWindowItem();

	void setHeadPixmap(const QString & headPixmapPath);
	void setMsgLabelContent(const QString &msg);
	QString getMsgLabelText();

private:
	Ui::TalkWindowItem *ui;

	void initControl();

signals:
	void signalCloseClicked(bool);



protected:
	virtual void enterEvent(QEvent *event);
	virtual void leaveEvent(QEvent *event);
	//virtual void paintEvent(QPaintEvent *event);
	//virtual void moveEvent(QMoveEvent *event);
	virtual void resizeEvent(QResizeEvent *event);
};
